critical points of function